package com.ytjj.qmyx.mall.mapper;

import com.ytjj.qmyx.mall.model.OrdersInfo;
import com.ytjj.qmyx.mall.model.ReturnGoods;
import com.ytjj.qmyx.mall.model.ReturnGoodsExample;
import java.util.List;

import com.ytjj.qmyx.mall.model.YxReturnGoods;
import org.apache.ibatis.annotations.Param;

public interface ReturnGoodsMapper {
    long countByExample(ReturnGoodsExample example);

    int deleteByExample(ReturnGoodsExample example);

    int deleteByPrimaryKey(Integer id);

    int insert(ReturnGoods record);

    int insertSelective(ReturnGoods record);

    List<ReturnGoods> selectByExample(ReturnGoodsExample example);

    ReturnGoods selectByPrimaryKey(Integer id);

    int updateByExampleSelective(@Param("record") ReturnGoods record, @Param("example") ReturnGoodsExample example);

    int updateByExample(@Param("record") ReturnGoods record, @Param("example") ReturnGoodsExample example);

    int updateByPrimaryKeySelective(ReturnGoods record);

    int updateByPrimaryKey(ReturnGoods record);

    List<OrdersInfo> selectByNoAddStrock();

    /**
     * 更新售后订单的收货人相关信息
     * @param record
     * @return
     */
    int updateReturnGoodsReceiveInfo(ReturnGoods record);

    List<ReturnGoods> selectByServiceStatus();


    List<YxReturnGoods> selectDateByOrderInfoIds(@Param("orderInfoIds") List<Integer> orderInfoIds);
}